#!/bin/sh
cd `rospack find speech_recog_julius`
if [ ! -d  third_party ]; then
  mkdir third_party
fi
cd third_party
wget --tries=10 'http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fjulius%2F51158%2Fdictation-kit-v4.1.tar.gz' -O dictation-kit-v4.1.tar.gz
tar zxfv dictation-kit-v4.1.tar.gz
wget --tries=10 'http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fjulius%2F51820%2Fjulius-4.2.tar.gz' -O julius-4.2.tar.gz
tar zxfv julius-4.2.tar.gz
cd julius-4.2
./configure --with-mictype=pulseaudio
make
